cmake_minimum_required(VERSION 3.1)

project(GeeJoanUI LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_subdirectory(libs/GeeJoanProtocol_C)
include_directories(libs/GeeJoanProtocol_C/src)
find_package(Qt5 COMPONENTS Core Quick Network REQUIRED)
add_executable(${PROJECT_NAME}
    "main.cpp"
    "qml.qrc"
    "Tool/TcpClient.cpp"
    "Tool/LogTool.cpp"
    "Tool/BridgeTool.cpp"
    "Tool/UserContex.cpp"
    )
target_compile_definitions(${PROJECT_NAME} PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Core Qt5::Quick Qt5::Network  GeeJoan_C)
